-- GENERATED SPELL FOR [Ragged John] --


function spell0_9563(pUnit, Event) --@Wicked Milking,n/a--
pUnit:FullCastSpellOnTarget(16472,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_9563', 579, 1)
end

function Sorts_9563(pUnit, Event)
local choix_sorts_9563 = math.random(0, 0)
if choix_sorts_9563 == 0 then
pUnit:RegisterEvent('spell0_9563', 1, 1)
end
end

function mob9563_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_9563', math.random(1500, 3000), 1)
end

function mob9563_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9563_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9563_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(9563, 1, 'mob9563_Action')
RegisterUnitEvent(9563, 2, 'mob9563_Leave')
RegisterUnitEvent(9563, 3, 'mob9563_Kill')
RegisterUnitEvent(9563, 4, 'mob9563_Die')
